Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure MonitorStage returns the cursor back to the end of output #2121

Conversation

dagardner-nv
Copy link
Contributor

Description

  • Fixes issue where a pipeline completes, and the shell prompt appears in the middle of the pipeline output, overwriting some of the output, and making it difficult to even notice the pipeline completed.
  • Add new mark_pbar_as_completed method to ProgressBarContextManager, which will return the cursor to the bottom of the output.
  • MonitorController no longer calls mark_as_completed on ProgressBar objects, instead uses ProgressBarContextManager::mark_pbar_as_completed.

Closes #2119

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

…e bottom once the last progress bar completes
@dagardner-nv dagardner-nv added bug Something isn't working non-breaking Non-breaking change labels Jan 21, 2025
@dagardner-nv dagardner-nv self-assigned this Jan 21, 2025
@dagardner-nv dagardner-nv requested a review from a team as a code owner January 21, 2025 21:45
@dagardner-nv
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit c6cfa0a into nv-morpheus:branch-25.02 Jan 22, 2025
17 checks passed
@dagardner-nv dagardner-nv deleted the david-fix-monitor-endlog-2119 branch January 22, 2025 20:39
rapids-bot bot pushed a commit that referenced this pull request Jan 28, 2025
… function calls (#2140)

<img width="532" alt="image" src="https://github.com/user-attachments/assets/39f491c6-4551-44a1-94a9-d3f420cf78e1" />

- [#2121](#2121) ensures the cursor is reset to the last line of output after shutdown by adding `ProgressBarContextManager::mark_pbar_as_completed()`. 
- When executing some of the pipelines, race conditions may cause calling `ProgressBarContextManager::display_all()` after `ProgressBarContextManager::mark_pbar_as_completed()`, which intermittently causes the log display issue above - which should has been fixed by this PR.

Closes #2119 

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md).
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Yuchen Zhang (https://github.com/yczhang-nv)
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - David Gardner (https://github.com/dagardner-nv)
  - Will Killian (https://github.com/willkill07)

URL: #2140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG]: C++ impl of monitor stage doesn't reset the cursor on shutdown
2 participants